//
//  CriterionUIHelper_Extras.m
//  funkydog
//
//  Created by Saptarshi Guha on 1/22/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "CriterionUIHelper_Extras.h"
#import <objc/objc.h>
#import <objc/objc-runtime.h>
#import <objc/objc-class.h>

@implementation CriteriaUIHelper(Extras)
+(void)load{
	if (self == [CriteriaUIHelper class]){
		Method originalMethod ,replacedMethod;
//		originalMethod  = class_getInstanceMethod(self, @selector(configureCriteriaForObject:));
//		replacedMethod  = class_getInstanceMethod(self, @selector(myconfigureCriteriaForObject:));
//		//method_exchangeImplementations(originalMethod, replacedMethod);
//		originalMethod  = class_getInstanceMethod(self, @selector(createNewCriterionViewForSender:));
//		replacedMethod  = class_getInstanceMethod(self, @selector(mycreateNewCriterionViewForSender:));
//		method_exchangeImplementations(originalMethod, replacedMethod);
//		originalMethod  = class_getInstanceMethod(self, @selector(awakeFromNib));
//		replacedMethod  = class_getInstanceMethod(self, @selector(myawakeFromNib));
//		//method_exchangeImplementations(originalMethod, replacedMethod);
//		originalMethod  = class_getInstanceMethod(self, @selector(configureAllCriterionMenus));
//		replacedMethod  = class_getInstanceMethod(self, @selector(myconfigureAllCriterionMenus));
//		//method_exchangeImplementations(originalMethod, replacedMethod);
//		originalMethod  = class_getInstanceMethod(self, @selector(tableView:objectValueForTableColumn:row:));
//		replacedMethod  = class_getInstanceMethod(self, @selector(mytableView:objectValueForTableColumn:row:));
//		method_exchangeImplementations(originalMethod, replacedMethod);
//		originalMethod  = class_getClassMethod(self, @selector(packageUserCriteria:withNoJunk:noTrash:noSent:allUserCriteriaMustBeSatisfied:));
//		replacedMethod  = class_getClassMethod(self, @selector(mypackageUserCriteria:withNoJunk:noTrash:noSent:allUserCriteriaMustBeSatisfied:));
//		method_exchangeImplementations(originalMethod, replacedMethod);
//		
	};
}
//+ (id)mypackageUserCriteria:(id)fp8 withNoJunk:(BOOL)fp12 noTrash:(BOOL)fp16 noSent:(BOOL)fp20 allUserCriteriaMustBeSatisfied:(BOOL)fp24;
//{
//	id x=[self mypackageUserCriteria:fp8
//						  withNoJunk:fp12
//							 noTrash:fp16
//							  noSent:fp20
//	  allUserCriteriaMustBeSatisfied:fp24];
//	//NSLog(@"Packed=%@",x);
//	return x;
//}
//- (id)mytableView:(id)fp8 objectValueForTableColumn:(id)fp12 row:(int)fp16
//{
//	id x=[self mytableView:fp8 objectValueForTableColumn:fp12 row:fp16];
//	NSLog(@"%@=[CriUIHelper tableView:%@ objectValueForTableColumn:%@ row:%d",x,fp8,fp12,fp16);
//	return x;
//}
//-(void)myawakeFromNib{
//	[self myawakeFromNib];
////	NSLog(@"[CriUIHelper awakeFromNib] headerlist=%@",[CriteriaUIHelper headerList]);
//}
//-(void)myconfigureAllCriterionMenus{
//	[self myconfigureAllCriterionMenus];
////	NSLog(@"[CriUIHelper configureAllCriterionMenus]");
//}
//- (id)mycreateNewCriterionViewForSender:(id)fp8{
//	id x=[self mycreateNewCriterionViewForSender:fp8];
//	//NSLog(@"%@=[CUIHelper createNewCriterionViewForSender:%@",x,fp8);
//	return x;
//}
//-(void)myconfigureCriteriaForObject:(id)fp8{
//	[self myconfigureCriteriaForObject:fp8];
////NSLog(@"[CriteriaUIHelper myconfigureCriteriaForObject:%@",fp8);
//}
@end
